package com.quick.admin.dao;

import com.quick.common.dto.SearchUserDto;
import com.quick.common.dto.UserInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 胡通达
 * @version 1.0
 * @date 2021-01-27 16:05
 */
@Mapper
public interface AdminUserDao {

    /**
     * 获取普通用户信息
     * @param searchUserDto
     * @return
     */
    List<UserInfoDto> searchGeneralUserList(SearchUserDto searchUserDto);

    /**
     * 获取总普通用户数量
     * @param searchUserDto
     * @return
     */
    int searchGeneralUserTotal(SearchUserDto searchUserDto);

    /**
     * 获取会员用户信息
     * @param searchUserDto
     * @return
     */
    List<UserInfoDto> searchMemberUserList(SearchUserDto searchUserDto);

    /**
     * 获取会员用户数量
     * @param searchUserDto
     * @return
     */
    int searchMemberUserTotal(SearchUserDto searchUserDto);

    /**
     * 获取过期会员信息
     * @param searchUserDto
     * @return
     */
    List<UserInfoDto> searchNotMemberUserList(SearchUserDto searchUserDto);

    /**
     * 获取过期会员数量
     * @param searchUserDto
     * @return
     */
    int searchNotMemberUserTotal(SearchUserDto searchUserDto);
}
